﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Alphabets
{
    public partial class del_row_apb : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int type = int.Parse(Request.QueryString["type"]);
            int row = int.Parse(Request.QueryString["row"]);

            var get_apb = new TblAlphabetController().FetchAll().Where(x => x.AlphaType == type && x.AlphaVertical == row);
            foreach(TblAlphabet apb in get_apb)
            {
                new TblAlphabetController().Destroy(apb.Id);
            }
        }
    }
}